package com.example.chapter08.entity;

// 购物车信息
public class CartInfo {
    public int id;
    public int goodsId;  // 商品编号
    public int count;  // 商品数量
    public GoodsInfo goodsInfo;  // 商品信息

    public CartInfo() {
    }

    public CartInfo(int id, int goodsId, int count) {
        this.id = id;
        this.goodsId = goodsId;
        this.count = count;
        this.goodsInfo = new GoodsInfo();
    }
}
